<?php
require_once("../../lib/connect_db.php");
$page = $_POST["data"];
$sql = "SELECT content FROM page_content WHERE page_id='".$page."' ORDER BY id DESC LIMIT 1";
$query = mysqli_query($conn,$sql);
$data = mysqli_fetch_array($query);
echo json_encode($data);
?>